package com.offcn.webui.service.impl;

import com.offcn.common.response.AppResponse;
import com.offcn.webui.service.UserFeignService;
import com.offcn.webui.vo.resp.UserAddressVo;
import com.offcn.webui.vo.resp.UserRespVo;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class UserFeignServiceImpl implements UserFeignService {

    @Override
    public AppResponse<UserRespVo> login(String loginacct, String userpswd) {
        AppResponse<UserRespVo> fail = AppResponse.fail(null);
        fail.setMsg("远程调用 用户登录 失败");
        return fail;
    }

    @Override
    public AppResponse<UserRespVo> getUserById(Integer id) {
        AppResponse<UserRespVo> fail = AppResponse.fail(null);
        fail.setMsg("远程调用 用户详情信息 失败");
        return fail;
    }

    @Override
    public AppResponse<List<UserAddressVo>> getAddressList(String accessToken) {
        AppResponse<List<UserAddressVo>> fail = AppResponse.fail(null);
        fail.setMsg("远程调用 用户地址 失败");
        return fail;
    }
}
